package com.qdxwx.data.service.document;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.document.Document;
import com.qdxwx.models.document.DocumentDetail;
import com.qdxwx.models.document.DocumentQuery;

import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface DocumentService {

    DocumentDetail get(int id);

    Document getLast(long id,DocumentQuery query);

    Document getNext(long id,DocumentQuery query);

    List<Document> getListTop(DocumentQuery query, int limit);

    List<Document> getList(DocumentQuery query, PageRequest page);

    int count(DocumentQuery query);

    int insert(DocumentDetail document);

    int delete(int id);

    int update(DocumentDetail document);

    int updateView(int id);

    int updateDown(int id);

    int updateLike(int id);
}
